Skip to content

chore: wire up CI and release workflows for foas module#1311

Merged
yelizhenden-mdb merged 2 commits into
mainfrom
CLOUDP-413371-4
Jun 17, 2026
Merged

chore: wire up CI and release workflows for foas module#1311
yelizhenden-mdb merged 2 commits into
mainfrom
CLOUDP-413371-4

Conversation

@yelizhenden-mdb

@yelizhenden-mdb yelizhenden-mdb commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Step 4 (final) of the tools/clitools/foas module split. Wires up CI and release for the new library module.

Previous steps

Changes

  • Add a tools/foas/** path trigger to code-health-foascli.yml. The CLI depends on foas, so its build/test/lint/e2e pipeline should also re-run when the library changes.

  • Add release-foas-lib.yml — a manual-dispatch workflow that releases the foas library. Since foas is a Go library (no binaries) and is consumed as source by the CLI via Go workspaces, a "release" is simply the Go submodule tag tools/foas/vX.Y.Z. External repos (e.g. ipa-skills) then consume it with:

    go get github.com/mongodb/openapi/tools/foas@vX.Y.Z
    

Follow-up after merge

Once merged, I'll cut the first library tag by running the release workflow. The resulting tag tools/foas/v0.1.0 will appear under the repo's Tags - not Releases, since the library has no binary artifact.

Step 4 (final) of the tools/cli -> tools/foas module split:

- Add a tools/foas/** trigger to code-health-foascli.yml so the CLI
  pipeline also re-runs when the foas library it depends on changes.
- Add release-foas-lib.yml: a manual-dispatch workflow that releases the
  foas library by creating the Go submodule tag tools/foas/vX.Y.Z that
  external repos consume via `go get`. Tests run before the tag is created,
  since a published module version is immutable on the Go proxy.

actionlint passes on all workflows.
@yelizhenden-mdb yelizhenden-mdb marked this pull request as ready for review June 16, 2026 15:39
@yelizhenden-mdb yelizhenden-mdb requested a review from a team as a code owner June 16, 2026 15:39
@yelizhenden-mdb yelizhenden-mdb enabled auto-merge (squash) June 16, 2026 16:28
Comment thread .github/workflows/release-foas-lib.yml
Comment thread .github/workflows/release-foas-lib.yml Outdated
Comment thread .github/workflows/release-foas-lib.yml Outdated

@andmatei andmatei left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yelizhenden-mdb yelizhenden-mdb merged commit e99f665 into main Jun 17, 2026
13 checks passed
@yelizhenden-mdb yelizhenden-mdb deleted the CLOUDP-413371-4 branch June 17, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants